<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			//json对象
			var jsonObj='{"name":"老李","age":59,"like":["旅游","运动"]}';
			//json数组
			var jsonArr='[11,"hello",true]';
			var obj=JSON.parse(jsonObj);
			var arr=JSON.parse(jsonArr);
			console.log(obj);
			console.log(obj.like[0]);
			console.log(arr[2]);
			
		</script>
	</head>
	<body>
	</body>
</html>
